// -----------------------------------------------------------------------------
// Copyright (c) 2022                  Qualcomm Technologies International, Ltd.
//
#include "aanc_gen_c.h"

#ifndef __GNUC__ 
_Pragma("datasection CONST")
#endif /* __GNUC__ */

static unsigned defaults_aancAANC_MONO_16K[] = {
   0x00000000u,			// AANC_CONFIG
   0x00000000u,			// DISABLE_AG_CALC
   0x0083126Fu,			// MU
   0x00000000u,			// GAMMA
   0x0001999Au,			// GENTLE_MUTE_TIMER
   0x00000000u,			// AANC_DEBUG
   0xFBA00000u,			// QUIET_MODE_HI_THRESHOLD
   0xFB000000u,			// QUIET_MODE_LO_THRESHOLD
   0x07FEF9DBu,			// ED_EXT_ATTACK
   0x07FEF9DBu,			// ED_EXT_DECAY
   0x000F5C29u,			// ED_EXT_ENVELOPE
   0x00020C4Au,			// ED_EXT_INIT_FRAME
   0x46666666u,			// ED_EXT_RATIO
   0x00F00000u,			// ED_EXT_MIN_SIGNAL
   0xFBA00000u,			// ED_EXT_MIN_MAX_ENVELOPE
   0x00200000u,			// ED_EXT_DELTA_TH
   0x010A3D71u,			// ED_EXT_COUNT_TH
   0x000000C8u,			// ED_EXT_HOLD_FRAMES
   0x00500000u,			// ED_EXT_E_FILTER_MIN_THRESHOLD
   0x000000FAu,			// ED_EXT_E_FILTER_MIN_COUNTER_THRESHOLD
   0x07FEF9DBu,			// ED_INT_ATTACK
   0x07FEF9DBu,			// ED_INT_DECAY
   0x00049BA6u,			// ED_INT_ENVELOPE
   0x00020C4Au,			// ED_INT_INIT_FRAME
   0x3999999Au,			// ED_INT_RATIO
   0x00F00000u,			// ED_INT_MIN_SIGNAL
   0xFB000000u,			// ED_INT_MIN_MAX_ENVELOPE
   0x00500000u,			// ED_INT_DELTA_TH
   0x010A3D71u,			// ED_INT_COUNT_TH
   0x000000C8u,			// ED_INT_HOLD_FRAMES
   0x00500000u,			// ED_INT_E_FILTER_MIN_THRESHOLD
   0x000000FAu,			// ED_INT_E_FILTER_MIN_COUNTER_THRESHOLD
   0x07FEF9DBu,			// ED_PB_ATTACK
   0x07FEF9DBu,			// ED_PB_DECAY
   0x000F5C29u,			// ED_PB_ENVELOPE
   0x00020C4Au,			// ED_PB_INIT_FRAME
   0x46666666u,			// ED_PB_RATIO
   0x00800000u,			// ED_PB_MIN_SIGNAL
   0xFCC00000u,			// ED_PB_MIN_MAX_ENVELOPE
   0x00200000u,			// ED_PB_DELTA_TH
   0x010A3D71u,			// ED_PB_COUNT_TH
   0x00000096u,			// ED_PB_HOLD_FRAMES
   0x00500000u,			// ED_PB_E_FILTER_MIN_THRESHOLD
   0x000000FAu,			// ED_PB_E_FILTER_MIN_COUNTER_THRESHOLD
   0x10000000u,			// BPF_DENOMINATOR_COEFF_EXT_0
   0xC2FCE91Bu,			// BPF_DENOMINATOR_COEFF_EXT_1
   0x576EA90Du,			// BPF_DENOMINATOR_COEFF_EXT_2
   0xC82F6CA9u,			// BPF_DENOMINATOR_COEFF_EXT_3
   0x0D651896u,			// BPF_DENOMINATOR_COEFF_EXT_4
   0x000ED59Cu,			// BPF_NUMERATOR_COEFF_EXT_0
   0x00000000u,			// BPF_NUMERATOR_COEFF_EXT_1
   0xFFE254C9u,			// BPF_NUMERATOR_COEFF_EXT_2
   0x00000000u,			// BPF_NUMERATOR_COEFF_EXT_3
   0x000ED59Cu,			// BPF_NUMERATOR_COEFF_EXT_4
   0x10000000u,			// BPF_DENOMINATOR_COEFF_INT_0
   0xC2FCE91Bu,			// BPF_DENOMINATOR_COEFF_INT_1
   0x576EA90Du,			// BPF_DENOMINATOR_COEFF_INT_2
   0xC82F6CA9u,			// BPF_DENOMINATOR_COEFF_INT_3
   0x0D651896u,			// BPF_DENOMINATOR_COEFF_INT_4
   0x000ED59Cu,			// BPF_NUMERATOR_COEFF_INT_0
   0x00000000u,			// BPF_NUMERATOR_COEFF_INT_1
   0xFFE254C9u,			// BPF_NUMERATOR_COEFF_INT_2
   0x00000000u,			// BPF_NUMERATOR_COEFF_INT_3
   0x000ED59Cu,			// BPF_NUMERATOR_COEFF_INT_4
   0x00080000u,			// CLIPPING_DURATION_EXT
   0x00080000u,			// CLIPPING_DURATION_INT
   0x00080000u,			// CLIPPING_DURATION_PB
   0x14000000u,			// FXLMS_MIN_BOUND
   0x6E000000u,			// FXLMS_MAX_BOUND
   0x00A40000u,			// FXLMS_MAX_DELTA
   0x00000028u,			// FXLMS_INITIAL_VALUE
   0x00500000u,			// EVENT_GAIN_STUCK
   0x00500000u,			// EVENT_ED_STUCK
   0x00F00000u,			// EVENT_QUIET_DETECT
   0x00500000u,			// EVENT_QUIET_CLEAR
   0x00500000u,			// EVENT_CLIP_STUCK
   0x00500000u,			// EVENT_SAT_STUCK
   0x00500000u,			// EVENT_SELF_TALK
   0x00500000u,			// SELF_SPEECH_THRESHOLD
   0x40000000u,			// LAMBDA
   0x00000000u,			// TARGET_NOISE_REDUCTION
   0x0001999Au,			// QUIET_MODE_TIMER
   0x00080000u,			// EVENT_SPL
   0xFFA00000u,			// EVENT_SPL_THRESHOLD
   0x0001999Au,			// FF_FINE_RAMP_UP_TIMER
   0x0001999Au,			// FB_FINE_RAMP_UP_TIMER
   0x00000000u,			// FB_FINE_RAMP_DELAY_TIMER
   0x00000000u,			// MU_STEEP_FALL
   0x00000000u,			// GAIN_DROP_FRAME_COUNT
   0x00000000u,			// GAIN_MIN_FREEZ_TIME
   0x00000000u			// GAIN_FREEZ_MIN
};

unsigned *AANC_GetDefaults(unsigned capid){
	switch(capid){
		case 0x00C7: return defaults_aancAANC_MONO_16K;
		case 0x409F: return defaults_aancAANC_MONO_16K;
	}
	return((unsigned *)0);
}
